//
//  PhotoCollectionViewCell.m
//  Movie
//
//  Created by mycomputer on 15/7/23.
//  Copyright (c) 2015年 杨韦智. All rights reserved.
//

#import "PhotoCollectionViewCell.h"
#import "Base.h"

@implementation PhotoCollectionViewCell

- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self _createSubView];
    }
    
    return self;
}

- (void)_createSubView {
    
    _photoScrollView = [[PhotoScrollView alloc] initWithFrame:self.bounds];
    _photoScrollView.tag = 100;
    [self.contentView addSubview:_photoScrollView];
}

- (void)setImageUrl:(NSString *)imageUrl {
    _imageUrl = imageUrl;
    [self setNeedsLayout];
}

- (void)layoutSubviews {
    _photoScrollView.imageUrl = _imageUrl;
}

@end
